<template>
  <div id="app">
    <main>
      <keep-alive>
        <router-view :key="$route.fullpath" v-if="$route.meta.keepAlive" />
      </keep-alive>
      <router-view
        :key="$route.fullpath"
        v-if="!$route.meta.keepAlive"
      ></router-view>
    </main>
  </div>
</template>

<script>
import Select from 'views/select'
import Chart from 'views/chart'

export default {
  data() {
    return {

    }
  },
  components: {
    Select,
    Chart
  },
  methods: {

  },
}
</script>

<style lang="scss">
@import url("assets/css/base.css");
#app {
  width: 100%;
  min-width: 1000px;
  min-height: 100vh;
  padding-left: calc(24vw / (1260 / 100));
  padding-right: calc(24vw / (1260 / 100));
  background: #f0f2f5 url("assets/img/background.svg") no-repeat center 110px;
  background-color: #edeef1;
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: rgba($color: #ccc, $alpha: 0.1);
    z-index: -1;
  }
  main {
    flex: 1;
    padding-left: calc(24vw / (1260 / 100));
    padding-right: calc(24vw / (1260 / 100));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
</style>
